package chapter_1;

public class Test2 {
    public static void main(String[] args) {
        int age = 18;
        char ch = 'A';
        int result = age + ch;    //int类型不能自动转换为char类型
        //-------------------------------------
        int a = 10;
        int b = 10;   //不规范，int须赋值整数
        double c = 10;
        double d = c;     //double不可以自动转化成int
    }
}
